package test;

import java.awt.event.*;

import javax.swing.*;



public class ConverterGUI extends JPanel  {
	
	private static final long serialVersionUID = 1L;
	private String title = "Temperature Converter";
	private TempConverter model = new TempConverter();
	private JTextField celsiusField = new JTextField("0.0", 10);
	private JTextField farField = new JTextField("32.0", 10);
	
	
	public ConverterGUI(){
		add(new JLabel("Celsisu"));
		add(celsiusField);
		add(new JLabel("Fahrenheit"));
		add(farField);
	}
	



	/**
	 *  Creates & displays a frame for this panel
	 */
	public void display() {
		 JFrame frame = new JFrame();
		 frame.setTitle(title);
		 frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		 frame.add(this);
		 frame.pack();
		 frame.setVisible(true);
	}



	public static void main(String[] args) {
		ConverterGUI gui = new ConverterGUI();
		gui.display();
	}


}

